package 核心API的使用;
import java.util.Scanner;

public class Amerry {

        public static void main(String[] args)  {
            Scanner input=new Scanner(System.in);
            double sum=0.0;
            double[] arr = new double[10];
            for(int i =0; i <arr.length; i++){
                System.out.println("输入第" +(i+1)+"个数：");
                arr[i] = input.nextDouble();
            }
            System.out.println("你输入的数：");
            for(int i =0; i <arr.length; i++){
                sum = sum+arr[i];
                System.out.println(" "+ arr[i]);
            }
            System.out.println();
            System.out.println("总数" +sum);


        }
}
